package com.molichuxing.services.infrastructure.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.DrivingLicenseBean;

/**
 * <p>
 * 驾驶证信息表 Mapper 接口
 * </p>
 *
 * @author liyg
 * @since 2019-08-12
 */
public interface DrivingLicenseMapper extends RootMapper<DrivingLicenseBean> {

	/**
	 * 获取驾驶证总条数
	 * 
	 * @param status
	 * @return
	 */
	long getCountByStatus(@Param("status") Integer status);

	/**
	 * 查询总条数
	 * 
	 * @param map
	 * @return
	 */
	long getDrivingLicensePageCount(Map<String, Object> map);

	/**
	 * 分页查询列表
	 * 
	 * @param map
	 * @param pageSize 
	 * @param pageNum 
	 * @return
	 */
	List<DrivingLicenseBean> getDrivingLicensePage(@Param("params")Map<String, Object> map, @Param("pageNum")Integer pageNum, @Param("pageSize")Integer pageSize);

	/**
	 * 修改驾驶证审核状态
	 * 
	 * @param drivingLicense
	 * @return
	 */
	int modifyStatusById(DrivingLicenseBean drivingLicense);

	/**
	 * 查询总条数
	 * 
	 * @param verifyStatus
	 * @return
	 */
	long getCountByVerifyStatus(@Param("verifyStatus") Integer verifyStatus);

	/**
	 * 修改驾驶证信息
	 * @param bean
	 * @return
	 */
	int modify(DrivingLicenseBean bean);
	
	/**
	 * 修改驾驶证状态
	 * @param bean
	 * @return
	 */
	int modifyStatus(DrivingLicenseBean bean);

}
